package gof.com.yew.command;

import java.util.ArrayList;
import java.util.List;

public class Invoker {
	private List<Command> comLists = new ArrayList<>();

	public void addCom(Command c) {
		comLists.add(c);
	}

	public void excuteCom(){
		for (Command c : comLists) {
			c.excute();
		}
		comLists.clear();
	}

}
